package com.example.demo.po;

import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public class Response {

    private int code;
    private String msg;
    private Map<String,String> data;

    public void success() {
        this.code = 200;
        this.msg = "成功";
    }
    public void fail() {
        this.code = 500;
        this.msg = "失败";
    }
    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    public Map<String,String> getData() {
        return data;
    }
    public void setData(Map<String,String> data) {
        this.data = data;
    }

}

